﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;

using EHTSaleManager.Code.Entity;
using EHTSaleManager.Code.DAL;

namespace EHTSaleManager.Code.BLL
{
    public class AdminProvider
    {

        public static DataSet GetUserByUserId(String UserID)
        {
            SqlCommand command = new SqlCommand();
            command.CommandText = "proc_GetUserByUserID";
            command.CommandType = CommandType.StoredProcedure;
            command.Parameters.Add(new SqlParameter("@UserId", UserID));
            DataSet ds = DataProvider.ExecuteDataSet(command);

            return ds;
        }

    }
}